﻿package com.codingbros.brogui 
{
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFieldAutoSize;
	/**
	 * ...
	 * @author Peter Tolstrup
	 */
	public class BroTextManager
	{
		/*
		[Embed(source='../lib/fonts/tahoma.ttf', fontFamily="TahomaEmbedded")]
		public static const TAHOMAEMBEDDED:Class;
		*/
		
		/*
		[Embed(source='fonts/tahomabd.ttf', fontName="TahomaBold")]
		public static const TAHOMABOLD:String;
		*/
				
		public function BroTextManager() 
		{
			
		}
		
		public static function buttonLabelTextField():TextField
		{
			var format:TextFormat = new TextFormat();
			format.color = 0xffffff;
			//format.font = "TahomaEmbedded";
			format.font = "_sans";
			format.size = 12;
			
			var field:TextField = new TextField();
			//field.embedFonts = true;
			field.selectable = false;
			field.autoSize = TextFieldAutoSize.LEFT;
			field.defaultTextFormat = format;
			
			return field;
		}
		
	}

}